<?php
namespace app\index\controller;
use app\BaseController;
use think\facade\Db;
use think\facade\View;
                    //Base_controller
class Index extends BaseController
{
    public function index()
    {
        return View();
    }
    public function user(){
        $list=Db::table('ecm_user')->select();
        View::assign('list',$list);
        return View::fetch();
    }
    public function brand(){
        $brand=Db::table('ecm_brand')->select();
        View::assign('brand',$brand);
        return View::fetch();
    }

}
